package com.jeecg.p3.system.poster.dao;


import com.jeecg.p3.system.poster.entity.ExamAnswer;
import com.jeecg.p3.system.poster.entity.ExamPaper;
import org.apache.ibatis.annotations.Param;
import org.jeecgframework.p3.core.utils.persistence.GenericDao;

import java.util.List;

/**
 *
 * @ClassName: ExamAnswerDao
 * @Description: TODO 试题答案接口
 * @author: zhangxiao
 * @date: 2021年1月10日 下午7:29:38
 */
public interface ExamAnswerDao extends GenericDao<ExamAnswer> {
    /**
     * 根据参数查询试题列表
     * @param answer
     * @return
     */
    public List<ExamAnswer> findByParam(ExamAnswer answer);

    /**
     * 根据试卷id删除答案
     * @param examPaperId
     */
    public void deleteByPaperId(@Param("examPaperId") String examPaperId);
}
